﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ESOL.Common.Entity;
using Suzsoft.Smart.Data;
using System.Data;

namespace ESOL.Business.Prod
{
    /// <summary>
    /// ProdPpMtrlHold
    /// </summary>
    public partial class ProdPpMtrlHoldBs
    {
        #region GetByID
        /// <summary>
        /// Get Entity
        /// </summary>
        /// <param name="objProdPpMtrlHoldEntity">Entity</param>
        /// <returns>Entity</returns>
        public static ProdPpMtrlHoldEntity GetProdPpMtrlHold(ProdPpMtrlHoldEntity objProdPpMtrlHoldEntity)
        {
            return DataAccess.SelectSingle<ProdPpMtrlHoldEntity>(objProdPpMtrlHoldEntity);
        }
        #endregion


        #region Insert
        /// <summary>
        /// Insert Data
        /// </summary>
        /// <param name="objProdPpMtrlHoldEntity">Entity</param>
        /// <returns>true Insert Succeed; false Insert Fail</returns>
        public static bool InsertProdPpMtrlHold(ProdPpMtrlHoldEntity objProdPpMtrlHoldEntity)
        {
            return DataAccess.Insert(objProdPpMtrlHoldEntity);
        }

        public static bool InsertProdPpMtrlHold(List<ProdPpMtrlHoldEntity> objProdPpMtrlHoldEntityList)
        {
            return DataAccess.Insert(objProdPpMtrlHoldEntityList);
        }
        #endregion


        #region Update
        /// <summary>
        /// Update Data
        /// </summary>
        /// <param name="objProdPpMtrlHoldEntity">Entity</param>
        /// <returns>true Update Succeed; false Update Fail</returns>
        public static bool UpdateProdPpMtrlHold(ProdPpMtrlHoldEntity objProdPpMtrlHoldEntity)
        {
            return DataAccess.Update(objProdPpMtrlHoldEntity);
        }

        public static bool UpdateProdPpMtrlHold(List<ProdPpMtrlHoldEntity> objProdPpMtrlHoldEntityList)
        {
            return DataAccess.Update<ProdPpMtrlHoldEntity>(objProdPpMtrlHoldEntityList);
        }
        #endregion


        #region Delete
        /// <summary>
        /// Delete Data
        /// </summary>
        /// <param name="objProdPpMtrlHoldEntity">Entity</param>
        /// <returns>true Delete Succeed; false Delete Fail</returns>
        public static bool DeleteProdPpMtrlHold(ProdPpMtrlHoldEntity objProdPpMtrlHoldEntity)
        {
            return DataAccess.Delete(objProdPpMtrlHoldEntity);
        }

        public static bool DeleteProdPpMtrlHold(List<ProdPpMtrlHoldEntity> objProdPpMtrlHoldEntityList)
        {
            return DataAccess.Delete<ProdPpMtrlHoldEntity>(objProdPpMtrlHoldEntityList);
        }
        #endregion


        #region GetAll
        /// <summary>
        /// Get All Data
        /// </summary>
        /// <returns>Back All Data<returns>
        public static DataSet GetProdPpMtrlHoldAll()
        {
            return DataAccess.SelectAllDataSet<ProdPpMtrlHoldEntity>();
        }
        /// <summary>
        /// Get All Data List
        /// </summary>
        /// <returns>Back All Data List<returns>
        public static List<ProdPpMtrlHoldEntity> GetProdPpMtrlHoldAllList()
        {
            return DataAccess.SelectAll<ProdPpMtrlHoldEntity>();
        }
        #endregion
    }
	
}
